package org.zephyr.fastboot.constant;

/**
 * @Author: ZephyrGao
 * @Date: 2024/6/24 08:19
 * @Description: 枚举类
 */
public enum ResultType {
    SUCCESS(StatusCode.SUCCESS, "操作成功"),
    UNAUTHORIZED(StatusCode.UNAUTHORIZED, "授权失败"),
    NOT_FOUND(StatusCode.NOT_FOUND, "找不到资源"),
    INTERNAL_SERVER_ERROR(StatusCode.INTERNAL_SERVER_ERROR, "服务端错误");


    private final int code;
    private final String message;

    ResultType(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

}
